<template>
  <div class="title_box">
    <div class="title">
      <div class="mainColor main_title">跨文种语义搜索与关联推荐应用系统</div>
      <div class="mainColor er_title">图书检索</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'TitleCom',
    data() {
      return {

      }
    }
  }
</script>

<style lang="less" scoped>
  .title_box {
    width: 100%;
    text-align: center;
    text-align: center;
    height: 60px;
    line-height: 60px;
    position: relative;
    // border:  1px solid #000;

    .title {
      height: 50px;
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      // border: 1px solid #000;

      .main_title { 
        font-weight: 600;
      }
      .er_title {
        float: right;
        font-weight: 600;
        line-height: 70px;
      }
    }
  }

  @media screen and (min-width: 1600px) {
    .title {
      width: 750px;
      overflow: hidden;
      position: relative;

      .main_title {
        width: 70%;
        font-size: 24px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }
      .er_title { 
        font-size: 18px;    
      }
    }
  }  

   @media screen and (max-width: 1599px) and (min-width: 1200px) {
    .title { width: 600px; }
    .main_title {
      width: 70%;
      font-size: 22px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }
    .er_title {
      font-size: 16px;
    }  
  }

  @media screen and (max-width: 1199px) and (min-width: 993px) {
    .title { width: 600px; }
    .main_title {
      font-size: 20px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }
    .er_title {
      font-size: 16px;
    }  
  }

  @media screen and (max-width: 992px) and (min-width: 768px) {
    .main_title {
      font-size: 18px;
      font-weight: 700;
    }
    .er_title {
      font-size: 12px;
    }  
  }
</style>